package com.jianbing.north.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.north.mapper.NorthQuesOptionMapper;
import com.jianbing.north.domain.NorthQuesOption;
import com.jianbing.north.service.INorthQuesOptionService;

/**
 * 题目选项Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-20
 */
@Service
public class NorthQuesOptionServiceImpl implements INorthQuesOptionService 
{
    @Autowired
    private NorthQuesOptionMapper northQuesOptionMapper;

    /**
     * 查询题目选项
     * 
     * @param id 题目选项主键
     * @return 题目选项
     */
    @Override
    public NorthQuesOption selectNorthQuesOptionById(Long id)
    {
        return northQuesOptionMapper.selectNorthQuesOptionById(id);
    }

    /**
     * 查询题目选项列表
     * 
     * @param northQuesOption 题目选项
     * @return 题目选项
     */
    @Override
    public List<NorthQuesOption> selectNorthQuesOptionList(NorthQuesOption northQuesOption)
    {
        return northQuesOptionMapper.selectNorthQuesOptionList(northQuesOption);
    }

    /**
     * 新增题目选项
     * 
     * @param northQuesOption 题目选项
     * @return 结果
     */
    @Override
    public int insertNorthQuesOption(NorthQuesOption northQuesOption)
    {
        return northQuesOptionMapper.insertNorthQuesOption(northQuesOption);
    }

    /**
     * 修改题目选项
     * 
     * @param northQuesOption 题目选项
     * @return 结果
     */
    @Override
    public int updateNorthQuesOption(NorthQuesOption northQuesOption)
    {
        return northQuesOptionMapper.updateNorthQuesOption(northQuesOption);
    }

    /**
     * 批量删除题目选项
     * 
     * @param ids 需要删除的题目选项主键
     * @return 结果
     */
    @Override
    public int deleteNorthQuesOptionByIds(Long[] ids)
    {
        return northQuesOptionMapper.deleteNorthQuesOptionByIds(ids);
    }

    /**
     * 删除题目选项信息
     * 
     * @param id 题目选项主键
     * @return 结果
     */
    @Override
    public int deleteNorthQuesOptionById(Long id)
    {
        return northQuesOptionMapper.deleteNorthQuesOptionById(id);
    }
}
